package com.ljh.SimpleTradingSystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ChatController {
    @GetMapping("/chat/{id}")
    public String getChatWindow(Model model, @PathVariable String id) {
        model.addAttribute("merchantId", id);
        return "Chat";
    }

    @GetMapping("/chatlist")
    public String getChatList() {
        return "ChatList";
    }

}
